package com.bauer.java.spring.classpathapp;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @Author ：rui.wei
 * @Date ：Created in 15:12 2018/6/22
 * @Description：
 */
@Aspect
@Component
public class DemoAdvice {

    @Pointcut("execution(* com.bauer.java.spring.classpathapp..*.*(..))")
    public void adivce(){

    }

    @Before("adivce()")
    public void doBefore(JoinPoint joinPoint){
        System.out.println("AOP Before Advice...");
    }
}
